package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通知对象 app_notice
 * 
 * @author ruoyi
 * @date 2021-07-30
 */
public class AppNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通知表id */
    private Long id;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 链接 */
    @Excel(name = "链接")
    private String url;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createSysUser;

    /** 发送者 */
    @Excel(name = "发送者")
    private String sendSysUser;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date effectTime;

    /** 状态 0草稿 1发送 */
    @Excel(name = "状态 0草稿 1发送")
    private Integer state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setCreateSysUser(String createSysUser) 
    {
        this.createSysUser = createSysUser;
    }

    public String getCreateSysUser() 
    {
        return createSysUser;
    }
    public void setSendSysUser(String sendSysUser) 
    {
        this.sendSysUser = sendSysUser;
    }

    public String getSendSysUser() 
    {
        return sendSysUser;
    }
    public void setEffectTime(Date effectTime) 
    {
        this.effectTime = effectTime;
    }

    public Date getEffectTime() 
    {
        return effectTime;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("url", getUrl())
            .append("createSysUser", getCreateSysUser())
            .append("sendSysUser", getSendSysUser())
            .append("effectTime", getEffectTime())
            .append("state", getState())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
